﻿using BasicInformation.Domain;
using BasicInformation.ErrorCode;
using MediatR;
using SqlSugar;

namespace BasicInformation.ApiRead.Application.Command.Carrier
{
    public class GetCarrierCommand:IRequest<ApiPaging<CarrierModel>>
    {
        public int index { get; set; } = 1;
        public int size { get; set; } =15;
        /// <summary>
        /// 承运商编号
        /// </summary>

        public string? CarrierCode { get; set; }
        /// <summary>
        /// 承运商名称
        /// </summary>
        [SugarColumn(Length = 50)]
        //[Required(ErrorMessage = "用户名不能为空")] // 需引用System.ComponentModel.DataAnnotations
        //[StringLength(50, ErrorMessage = "用户名长度不能超过50")], IsRequired = true
        public string? CarrierName { get; set; }
    }
}
